# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-make
pkgver=0_git20211216
_gitrev=a4b9187417d6be349ee5fd4b6e77b4172c6827dd
pkgrel=2
pkgdesc="Tree-sitter grammar for Make"
url="https://github.com/alemuller/tree-sitter-make"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/alemuller/tree-sitter-make/archive/$_gitrev/tree-sitter-make-$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
d2d33c64c97caa2e54ca3fcfd33d00e2ca9f3dbbdbeaa60308d2d34dbba9b8519980bc2f5331ee9159efcf4d942a412fb4e4bbff4c4f926ac14ecc767b788069  tree-sitter-make-a4b9187417d6be349ee5fd4b6e77b4172c6827dd.tar.gz
"
